package com.hoshiicloud.rbac.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统组织
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysOrganization对象", description = "系统组织")
public class SysOrganization extends Model<SysOrganization> {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "ID")
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@ApiModelProperty(value = "saas平台ID")
	private Long platformId;

	@ApiModelProperty(value = "所属上级")
	private Long pId;

	@ApiModelProperty(value = "组织名称")
	private String name;

	@ApiModelProperty(value = "组织描述")
	private String description;

	@ApiModelProperty(value = "电话")
	private String telphone;

	@ApiModelProperty(value = "传真")
	private String fax;

	@ApiModelProperty(value = "地址")
	private String address;

	@ApiModelProperty(value = "负责人")
	private String charge;

	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createdTime;

	@ApiModelProperty(value = "创建人")
	private String createdBy;

	@ApiModelProperty(value = "修改时间")
	private LocalDateTime modifiedTime;

	@ApiModelProperty(value = "修改人")
	private String modifiedBy;




	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
